{extend name="public/base" /}

<!--尾部-->

<!--返回顶部-->
{block name="content"}
{__block__}
<input type="hidden" name="mun_url" id="mun_url" value="3,2"/>
<div class="c-r right">
    <div class="label1">
        <div class="title">
            意见反馈
        </div>

        <div class="Statistics">

        </div>
        <div class="Statistics">
            <div class="left d">
                <form action="" method="post">

                </form>
            </div>
            <!--<span class="right">共有数据：<b>XX</b>条</span>-->
            <div class="clear"></div>
        </div>


        <div class="label-3 label">
            <div class="tit t">
                <p>意见反馈</p>
            </div>
            <div class="Tab">
                <table border="0" cellspacing="0" cellpadding="0" style="width: 984px;">
                    <tr>
                        <th style="width: 40px;"><input type="checkbox" name="" id="" value="" /></th>
                        <th style="width: 60px;">ID</th>
                        <th style="width: 60px;">用户ID</th>
                        <th style="width: 150px;">用户名</th>
                        <th style="width: 130px;">手机号</th>
                        <th style="width: 130px;">QQ号</th>
                        <th style="width: 170px;">反馈意见</th>
                        <th style="width: 160px;">反馈时间</th>
                        <th style="width: 120px;">操作</th>
                    </tr>
                </table>
                <table border="0" cellspacing="0" cellpadding="0" style="width: 984px;">
                    {foreach name="data" item="vo"}
                    <tr>
                        <td style="width: 40px;"><input type="checkbox" name="" id="" value="" /></td>
                        <td style="width: 60px;">{$vo.id}</td>
                        <td style="width: 60px;">{$vo.uid}</td>
                        <td style="width: 150px;">{$vo.nickname}</td>
                        <td style="width: 130px;">{$vo.phone}</td>
                        <td style="width: 130px;">{$vo.qqnum}</td>
                        <td style="width: 170px;">{$vo.content}</td>
                        <td style="width: 160px;">{$vo.createtime}</td>
                        <td style="width: 120px;"><button class="modifybtn" onclick="dele('{$vo.id}','deletes')">删除</button>
                    </tr>
                    {/foreach}
                </table>
            </div>
            <!--<div style="text-align: center" class="pages">-->
            <!--</div>-->
        </div>
    </div>
</div>

<div id="wrap" class="wrap">
    <div class="wrap-body express">
        <div class="title">
            详情查看
        </div>
        <iframe src="show" style="height: 100%; width: 100%;"></iframe>
        <span class="close-wrap close-win">×</span>
        <div class="wrap-btn">
            <span class="close-btn close-win">取消</span>
            <span class="next-btn close-win">确认</span>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(".open-win").click(function(){
        var dataurl = $(this).attr('data-type');
        $("iframe").attr('src',dataurl)
    })
</script>
<script>
    function dele(id,url){
        console.log(id)
        if(window.confirm('你确定要删除吗？')){
            $.ajax({
                type:'get',
                data: {id,id},
                url:url,
                dataType:'json',
                success:function($data){
                    if($data == 1){
                        window.location.reload();
                    }else{
                        alert('操作失败!')
                    }
                }
            })
        }
    }
</script>
{/block}

